package com.imooc.cloud.mall.practice.common.exception;

/**
 * 异常枚举
 */
public enum ImoocMallExceptionEnum {
    REQUEST_PARAM_ERROR(10000, "请求参数错误"),

    SYSTEM_ERROR(20000, "系统异常"),
    ;

    Integer code;
    String message;

    ImoocMallExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }

}
